<?php

 /**
  * @package JooS
  * @subpackage Syntax
  */

  require_once "JooS/Syntax/Simple.php";

  class JooS_Syntax_Simple_Symbol extends JooS_Syntax_Simple {
    public function init() {
      $this->_value = func_get_arg(0);
    }

    private $_value = "";

    /**
     * @return int
     */
    public function getLength() {
      return strlen($this->_value);
    }

    /**
     * @param string $substring
     * @return bool
     */
    public function checkSubstring($substring) {
      return $this->_value == $substring;
    }
  }
